package com.report.reportserver.service.impl;

import com.report.reportserver.mapper.LegendMapper;
import com.report.reportserver.model.Legend;
import com.report.reportserver.service.LegendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ ClassName: LegendServiceImpl
 * @ Description：
 * @ Modified By：
 * @ Version:
 * @ Author     ：LiYing
 * @ Date       ：Created in 17:13 2022/2/28
 */
@Service
public class LegendServiceImpl implements LegendService {
    @Autowired
    LegendMapper legendMapper;
    @Override
    public Legend queryLegendById(Integer id) {
        return legendMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Object> queryAllLegends() {
        return legendMapper.selectAllLegends();
    }
}
